@isTest
private class AccountWebServiceTest {
    static testMethod void testMethod1() {
        // 客户
        Account acc1 = TestUtils.createAccount();
        insert acc1;
        acc1 = [select Name from Account where Id = :acc1.Id];

        // 没有Id
        String rtn = AccountWebService.createAccOwnerChangeThread('');
        System.assertEquals(System.Label.Err_AccNotSelected, rtn);

        // 正常
        rtn = AccountWebService.createAccOwnerChangeThread(acc1.Id);
        System.assertEquals(18, rtn.length());

        // 被占用
        rtn = AccountWebService.createAccOwnerChangeThread(acc1.Id);
        System.assertEquals(System.Label.Err_AccInChangeProc + acc1.Name, rtn);
    }
}